# New ports collection makefile for:	shiboken
# Date created:		18 March 2011
# Whom:			jashank/tigersharke
#
# $FreeBSD$
#

PORTNAME=	shiboken
DISTVERSION=	1.0.9
CATEGORIES=	devel x11-toolkits python
MASTER_SITES=	http://www.pyside.org/files/

MAINTAINER=	jashankj@pondr.net
COMMENT=	Generator plugin for PySide

BUILD_DEPENDS+=	${LOCALBASE}/bin/sphinx-build:${PORTSDIR}/textproc/py-sphinx
#LIB_DEPENDS+=	apiextractor.0:${PORTSDIR}/devel/apiextractor \
#		genrunner.0:${PORTSDIR}/devel/generatorrunner

USE_BZIP2=	yes
USE_CMAKE=	yes
CMAKE_OUTSOURCE=yes
USE_QT_VER=	4
QT_COMPONENTS=	gui moc_build uic_build rcc_build xml xmlpatterns qtestlib qmake_build

USE_GNOME=	libxml2 libxslt glib20
USE_GMAKE=	yes
USE_LDCONFIG=	yes
USE_PYTHON=	2.5+

MAN1=		shiboken.1

OPTIONS=	NLS "Enable support for Gettext" WITHOUT_NLS=true

.include <bsd.port.options.mk>

.if !defined(WITHOUT_NLS)
USE_GETTEXT=	yes
USE_ICONV=	yes
PLIST_SUB+=	NLS=""
.else
CONFIGURE_ARGS+=--disable-nls
PLIST_SUB+=	NLS="@comment "
.endif

post-extract:
##	${REINPLACE_CMD} 's|/pkgconfig|${LOCALBASE}/libdata/pkgconfig|g' ${WRKSRC}/data/CMakeLists.txt
#	${REINPLACE_CMD} 's|/pkgconfig|${WRKSRC}/libdata/pkgconfig|g' ${WRKSRC}/data/CMakeLists.txt
#	${REINPLACE_CMD} 's|LIB_INSTALL_DIR|ArthurDent|g' ${WRKSRC}/data/CMakeLists.txt
#	${REINPLACE_CMD} 's|/cmake/Shiboken-|${LOCALBASE}/share/cmake/Modules|g' ${WRKSRC}/data/CMakeLists.txt
#	${REINPLACE_CMD} 's|shiboken_VERSION|ZaphodBeeblebrox|g' ${WRKSRC}/data/CMakeLists.txt
##	${REINPLACE_CMD} 's|PYTHON_BASENAME|FordPrefect|g' ${WRKSRC}/data/CMakeLists.txt
##	${REINPLACE_CMD} 's|ShibokenConfig-|ShibokenConfig${PYTHON_PKGNAMESUFFIX}|g' ${WRKSRC}/data/CMakeLists.txt

.include <bsd.port.mk>
